package com.itlong.cloud.commons.resource;

import com.itlong.cloud.commons.service.IPushCloudEntranceChangeLogService;
import com.itlong.cloud.equip.commons.IPushCloudEntranceChangeLogServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      云门禁响应硬件结果业务处理暴露接口实现类
 * </desc>
 *
 * @createDate 2019/02/26
 */
@RestController
public class PushCloudEntranceChangeLogServiceResource implements IPushCloudEntranceChangeLogServiceClient {

    @Autowired
    private IPushCloudEntranceChangeLogService iPushCloudEntranceChangeLogService;

    /**
     * <desc>
     *      任务调度执行同步业务指令至响应硬件结果表
     * </desc>
     *
     * @author wangzhi
     * @createDate 2019/02/26
     */
    @Override
    @RequestMapping(path = "/smartCard/timeTaskPushCloudEntrance", method = RequestMethod.POST)
    public void timeTaskPushCloudEntrance() throws Exception {
        iPushCloudEntranceChangeLogService.timeTaskPushCloudEntrance();
    }
}
